package finalproject.model.player.fight;

import finalproject.view.StringManager;

/**
 * The ability class
 * Represents an ability, which is usable to fight
 * @author user
 *
 */
public class Ability {
	
	/**
	 * The name of the ability
	 */
	private String name;
	/**
	 * The strength of the ability
	 */
	private int strength; 
	
	/**
	 * 
	 * @param name The name of the ability
	 * @param strength The strength of the ability
	 */
	public Ability(String name, int strength) {
		
		this.setName(name);
		this.setStrength(strength);			
	}

	/**
	 * 
	 * @return the strength of the ability
	 */
	public int getStrength() {
		return strength;
	}

	/**
	 * 
	 * @param strength the new strength of the ability
	 */
	public void setStrength(int strength) {
		this.strength = strength;
	}

	/**
	 * 
	 * @return the name of the ability
	 */
	public String getName() {
		return name;
	}

	/**
	 * 
	 * @param name the new name of the ability
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
	@Override
	public String toString(){
		return name + "( "+StringManager.getString("powers") + this.getStrength() +")";
	}

}
